package pl.javarsovia.javarsovia4android.xml.utils;

import org.w3c.dom.Element;
import pl.javarsovia.javarsovia4android.util.XMLUtils;

import java.io.FileInputStream;

/**
 * @author mgrzechocinski
 * @since 2010-06-12
 */
public class XMLTestUtils {

	private static final String TEST_CONFERENCE_FILE_LOCATION = "src/test/resources/conference_test.xml";

	public static Element getConferenceFileRoot() {
		try {
			return XMLUtils.getRoot(new FileInputStream(TEST_CONFERENCE_FILE_LOCATION));
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}
